package com.ngc.mall.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ngc.mall.common.configure.mybatisPlus.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 *
 * 抽奖大转盘domain
 * @author: chenxiaolin
 * @date 2023/10/14 11:02
**/
@Data
@TableName("lottery")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class LotteryDomain extends BaseDomain {
    private String topic;

    private LocalDateTime startDate;

    private LocalDateTime endDate;

    private Integer status;

    private String rule;
    /**
     * 背景图
     */
    private String bgImg;

    /**
     * 抽奖活动类型， 1 大转盘 2.九宫格
     */
    private Integer lotteryType;

    /**
     * 每次抽奖，消耗积分数
     */
    private Integer integral;

    /**
     * 封面图
     */
    private String img;

    @TableLogic
    private Boolean deleted;
}
